<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
{{assign var="title" value='物流详情'}}
{{assign var="app" value='Order'}}
{{assign var="table" value='order'}}
{{assign var="act" value='modify'}}
<title>{{$title}} - {{'admin|admin_site_name'|C|default:'后台管理'}}</title>
{{include file="include/base.html"}}
{{include file="{{$smarty.const.PLUG}}chosen/chosen.html"}}
{{include file="{{$smarty.const.PLUG}}drag/drag.html"}}
{{include file="{{$smarty.const.PLUG}}verify/verify.html"}}
</head>

<body>

	{{include file="include/sidebar.html"}}

	<div class="body_right">
	<div id="content">
	<div class="search">
		<ul class="bread">
			<li>◆ {{$title}}管理 －> {{$result.title|default:'添加'}}</li>
		</ul>
	</div>
			
		<!--内容 S-->
		<form name="form" class="verify" method="post">
		<input type="hidden" name="id" value="{{$result.id}}"/>
		<table class="table table-bordered tablest modify">
		  	<tbody>
				<!-- <tr>
					<td>快递公司：</td>
					<td>
					<select name="logistics_type" class="chosen"style="min-width:150px" >
						<option value=''>请选择快递..</option>
						{{if $result.type}}
						{{foreach from=$result.type item=val key=key}}
						<option value="{{$val.id}}" {{if $val.id == $result.logistics_type}}selected="selected"{{/if}}>{{$val.title}}</option>
						{{/foreach}}
						{{/if}}
					</select>
					</td>
				</tr> -->
				<tr>
					<td>物流单号：</td>
					<td>
						<input class="input-xlarge" type="text" name="logistics_id" maxlength="50" value="{{if $result.logistics_id}}{{$result.logistics_id}}{{/if}}">
					</td>
				</tr>
				<tr>
					<td>是否签收</td>
					<td>{{if $result.logistics.ischeck == '0'}}未签收{{elseif $result.logistics.ischeck == '1'}}已签收{{else}}揽件出错{{/if}}</td>
				</tr>
				<tr class="ttitle">
					<td colspan="2"> >> 物流信息</td>
				</tr>
			</tbody>
		</table>
		<table class="table table-bordered tablest modify">
			<tbody>
				{{if !$result.logistics}}
				<tr>
					<td colspan="2" style="text-align:center">暂无物流信息</td>
				</tr>
				{{else}}
				<tr>
					<td style="text-align:left">时间</td>
					<td style="text-align:left">过程</td>
				</tr>
				{{foreach item=val from=$result.logistics.data}}
				<tr>
					<td style="text-align:left">{{$val.time}}</td>
					<td style="text-align:left">{{$val.context}}</td>
				</tr>
				{{/foreach}}
				{{/if}}
		  </tbody>
		</table>
		<div class="bottom_button">
			<div class="submit btn btn-info"><i class="icon-ok icon-white"></i>确认</div>
		</div>
		</form>
		<!--内容 E-->
</div>
</div>
<script type="text/javascript">

	// $(document).ready(function(){
	// 	if($(".one").hasClass("disabled"))
	// 		$(".one").hide();
	// 	else
	// 		$(".one").show();
	// }); 

	// $("input[name='one_shop']").change(function(){
	// 	var val = $("input[name='one_shop']:checked").val();
	// 	if(val == '0')
	// 		$(".one").hide();
	// 	else if(val == '1')
	// 		$(".one").show();
	// })
	
	// 提交表单
	$(".submit").click(function(){
		var params = $("form").serialize();
		$.post('{{"index.php?app={{$app}}&act=save"|URL}}',params,function(result){
			if(result.statusCode == '300'){
				ui.error(result.message);
			}else if(result.statusCode=='201'){//添加成功后
				ui.success(result.message);
				window.parent.document.location.reload();
			}else if(result.statusCode=='200'){//编辑成功后
				ui.success(result.message);
            	window.parent.document.location.reload();
			}
		},'json');	
	});
</script>
{{include file="{{$smarty.const.PLUG}}ueditor/ueditor.html"}}
</body>
</html>